package com.hl.sfzy.service;

import com.hl.sfzy.entity.TeacherLevel;
import com.hl.sfzy.entity.Good;
import com.hl.sfzy.entity.Appointment;
import com.hl.sfzy.mapper.AppointmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppointmentService {

    @Autowired
    private AppointmentMapper appointmentMapper;

    public List<TeacherLevel> getTeacherLevels() {
        return appointmentMapper.getTeacherLevels();
    }

    public List<Good> getGoods() {
        return appointmentMapper.getGoods();
    }

    public boolean createAppointment(Appointment appointment) {
        return appointmentMapper.createAppointment(appointment) > 0;
    }
}